Generating Python Code from Object-Z Specifications
نویسندگان
چکیده
Object-Z is an object-oriented specification language which extends the Z with classes, objects, inheritance and polymorphism that can be used to represent of a complex system as collections objects. There are number existing works mapped C++ Java programming languages. Since Python share many similarities, both paradigm, support set theory predicate calculus moreover, functional naturally closer formal specifications, we propose mapping from specifications code covers some constructs express its in validate these specifications. The validations covered preconditions, post-conditions, invariants built using lambda function Python's decorator. This work has found excellent for developing libraries map Python.
منابع مشابه
Generating Python Code From Object-Z Specifications
Object-Z is an object-oriented specification language which extends the Z language with classes, objects, inheritance and polymorphism that can be used to represent the specification of a complex system as collections of objects. There are a number of existing works that mapped Object-Z to C++ and Java programming languages. Since Python and Object-Z share many similarities, both are object-ori...
متن کاملGenerating Object-z Specifications
The importance of use cases has been growing for the last few years. We believe they are important to help developers capturing requirements. The work presented here formalises use cases using basic temporal logic to define history invariants within Object-Z class schemas. This is accomplished by proposing a set of formal frameworks integrated within a process.
متن کاملGenerating Multi-Threaded code from Polychronous Specifications
SIGNAL, Lustre, Esterel, and a few other synchronous programming language compilers accomplish automated sequential code generation from synchronous specifications. In generating sequential code, the concurrency expressed in the synchronous programs is sequentialized mostly because such embedded software was designed to run on single-core processors. With the widespread advent of multi-core pro...
متن کاملGenerating Bsplib-c Code from Logs Specifications
This paper introduces a tool that automatically translates a concrete form of specifications into C code linked with BSPlib. A Logs specification for Bulk-Synchronous Parallelism is a relation of an initial state, a final state and some intermediate states. Nondeterminism and parallelism correspond to disjunction and conjunction respectively. Various advanced specification commands can be deriv...
متن کاملRefactoring Object-Z specifications
This paper describes an approach to transferring techniques of refactorings to formal methods. We use syntactical rewriting rules to express refactorings on Object-Z specifications. In contrast to programming languages here refactorings can be formally proven to preserve the behaviour of the specification. We give an outline of such a proof of behaviour preservation.
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
ژورنال
عنوان ژورنال: Social Science Research Network
سال: 2021
ISSN: ['1556-5068']
DOI: https://doi.org/10.2139/ssrn.3916721